from ctypes import cdll
import os


os.system("go build -buildmode=c-shared -o s1.so s1.go")

lib = cdll.LoadLibrary('./s1.so')

# 调用go语言的Sum
result = lib.Sum(100, 200)
print(result)

# 调用go语言的PrintDll
lib.PrintDll()
os.system("rm ./s1.so")